package com.yuanian.ecsplus.session;

import com.yuanian.ecsplus.page.PageSql;
import com.yuanian.ecsplus.page.Pagination;

import java.util.Map;

/**
 * 分页的session
 * @param <T>
 */
public interface PageSession<T> {

    Pagination<T> selectList(String sql, int limit, int offset, String orderBy);

    Pagination<T> selectList(String sql, int limit, int offset, boolean totalResults, String orderBy);

    Pagination<T> selectList(PageSql pageSql);

    Pagination<Map> selectMap(String sql, int limit, int offset, String orderBy);

}
